package com.fs.concurrentmodel.day7.threadandlock;

/**
 * @author shuai.fang
 * @date：2017-12-10
 * @description：
 */
public class HelloWorld {

	public static void main(String[] args) throws InterruptedException {
		Thread myThread = new Thread() {
			@Override
			public void run() {
				System.out.println("Hello from new thread");
			}
		};
		myThread.start();
//		Thread.yield();
//		Thread.sleep(1);
		System.out.println("Hello from main thread");
		myThread.join();
	}

}
